<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIdxInNoteTable extends AbstractMigration
{
    public function up()
    {
        $this->table('note')
            ->addIndex(['comment_subject_id'], ['type' => 'normal', 'name' => 'idx_comment_subject_id'])
            ->save();
    }

    public function down()
    {
        $this->table('note')->removeIndexByName('idx_comment_subject_id')->save();
    }
}
